package strategy;

/**
 * @author Koizumi Sinya
 * @date 2018/04/01. 17:56
 * @edithor
 * @date
 */
public class PriceControl {
    private SaleStrategy saleStrategy;

    public PriceControl(SaleStrategy saleStrategy) {
        this.saleStrategy = saleStrategy;
    }

    public double getPrice(double price) {
        return saleStrategy.getSalePrice(price);
    }
}
